package com.ant.business.system.entity;

import com.ant.common.base.BaseDomain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户管理
 *
 * @author LB
 * @description LB
 * @create 2021-03-22 14:25:56
 **/
@EqualsAndHashCode(callSuper = true)
@TableName(value = "tb_user")
@Data
@ApiModel(value = "用户管理")
public class User extends BaseDomain {

    /**
     * 用户编号
     */
    @TableId(value = "user_id", type = IdType.AUTO)
    @ApiModelProperty("用户编号")
    private Integer userId;

    /**
     * 用户简码
     */
    @TableField(value = "user_code")
    @ApiModelProperty("用户简码")
    private String userCode;

    /**
     * 用户名称
     */
    @TableField(value = "user_name")
    @ApiModelProperty("用户名称")
    private String userName;

    /**
     * 手机号
     */
    @TableField(value = "mobile")
    @ApiModelProperty("手机号")
    private String mobile;

    /**
     * 人员类型
     */
    @TableField(value = "user_type")
    @ApiModelProperty("人员类型")
    private Integer userType;

    /**
     * 密码
     */
    @TableField(value = "password")
    @ApiModelProperty("密码")
    private String password;

    /**
     * 状态
     */
    @TableField(value = "status")
    @ApiModelProperty("状态")
    private Integer status;

    /**
     * 单位编号
     */
    @TableField(value = "unit_id")
    @ApiModelProperty("单位编号")
    private Integer unitId;

    /**
     * 删除标志
     */
    @TableField(value = "delete_flag")
    @ApiModelProperty("删除标志")
    private Integer deleteFlag;

    /**
     * 备注
     */
    @TableField(value = "remark")
    @ApiModelProperty("备注")
    private String remark;

    /**
     * token
     */
    @TableField(exist = false)
    @ApiModelProperty("token")
    private String token;
}